﻿<BaseControl:DialogControl x:Class="jSLApp.Client.Forms.TagsDetail"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:BaseControl="clr-namespace:jSLCore.Client.Presentation.BaseControl;assembly=jSLCore.Client.Presentation" xmlns:Selection="clr-namespace:jSLCore.Client.Presentation.Wpf.TelerikSupport.Selection;assembly=jSLCore.Client.Presentation.Telerik" xmlns:j="clr-namespace:jSLCore.Client.Presentation.Controls;assembly=jSLCore.Client.Presentation" xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" xmlns:Columns="clr-namespace:jSLCore.Client.Presentation.Wpf.TelerikSupport.Selection.Columns;assembly=jSLCore.Client.Presentation.Telerik" mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" AcceptButtonName="acbutton">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>            
        </Grid.ColumnDefinitions>
        <Button Name="acbutton" Visibility="Collapsed"/>
        <j:ImageGroupBox Header="Текущие тэги" Grid.Column="0" Margin="0" Padding="0">
            <Selection:jSLRadGrid x:Name="currentGrid" 
                                  ShowGroupPanel="False" 
                                  CanUserDeleteRows="True" 
                                  CanUserInsertRows="True" 
                                  CellValidating="value_Validating" 
                                  CellEditEnded="edit_Ended" 
                                  ShowColumnHeaders="False" 
                                  IsReadOnly="False">
                <Selection:jSLRadGrid.Columns>
                    <Controls:GridViewDataColumn Width="*" IsReadOnly="False" DataMemberBinding="{Binding Path=Val , Mode=TwoWay}"/>
                    <Selection:ImageButtonColumn ButtonImage="../Resources/delete.png" ButtonTooltip="Исключить" Click="remove_Clicked" IsReadOnly="True"/>
                </Selection:jSLRadGrid.Columns>
            </Selection:jSLRadGrid>
        </j:ImageGroupBox>
        <j:ImageGroupBox Grid.Column="1" Padding="0" Margin="0">
            <j:ImageGroupBox.Header>
                <j:LeftHeaderContainer Header="Быстрый поиск:">
                    <TextBox Name="txt" Width="180" TextChanged="text_Changed" KeyDown="key_Down"/>
                </j:LeftHeaderContainer>
            </j:ImageGroupBox.Header>
            <Selection:jSLRadGrid x:Name="allGrid" Margin="0" ShowGroupPanel="False" GoDetailsClick="addtoCurrent_Clicked" ShowColumnHeaders="False">
                <Selection:jSLRadGrid.Columns>
                    <Selection:ImageButtonColumn ButtonImage="../Resources/delete.png" ButtonTooltip="Удалить тэг" Click="removeTag_Clicked"/>
                    <Columns:GoDetailsColumn Width="*"/>
                </Selection:jSLRadGrid.Columns>
            </Selection:jSLRadGrid>
        </j:ImageGroupBox>
    </Grid>
</BaseControl:DialogControl>
